package com.oren.activity.service;

import com.oren.activity.pojo.ActDeployment;
import com.oren.base.pojo.Page;

import java.util.List;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: wangshiwei
 * Date: 2018/7/31
 * Time: 14:43
 * describe:
 */
public interface ActDeploymentService {

    /**
     * 分页查询
     * @param actDeployment
     * @param page
     * @param rows
     * @return
     */
    Page<ActDeployment> pageList(ActDeployment actDeployment,int page,int rows);

    /**
     * 部署一个新的流程
     * @param actDeployment
     * @return
     */
    boolean deploymentCreate(ActDeployment actDeployment);

    /**
     * 删除一个流程
     * @param depId
     */
    void delloymentDelete(String depId);

    /**
     * 根据部署id查询数据
     * @param depId
     * @return
     */
    ActDeployment findByPdId(String depId);

    /**
     * 获取所有流程的信息
     * @return
     */
    List<Map<String,Object>> findAllDeploy();

}
